package com.by.common.core.utils;


import com.by.common.core.exception.BusinessException;

public class Assert {
    /**
     *  判断rs的结果  如果为0  不成功  抛出异常
     * @param rs
     * @param msg 错误消息描述
     */
    public static void isFail(int rs, String msg) {
        if (rs == 0)
            throw new BusinessException(msg);
    }
}
